package com.hncgy.xzf.jdapi.domain.index;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import java.io.Serializable;
import java.time.LocalDateTime;
import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Data;

/**
 * <p>
 * 首页轮播图表
 * </p>
 *
 * @author 不会代码的蜡笔
 * @since 2025-10-31
 */
@Data
@Schema(name = "Banners对象", description = "首页轮播图表")
public class Banners implements Serializable {

    private static final long serialVersionUID = 1L;

    @Schema(description ="轮播图ID，主键")
    @TableId(value = "banner_id", type = IdType.AUTO)
    private Integer bannerId;

    @Schema(description ="轮播图名称")
    private String bannerName;

    @Schema(description ="图片URL")
    private String imageUrl;

    @Schema(description ="跳转链接")
    private String targetUrl;

    @Schema(description ="排序序号")
    private Integer sortOrder;

    @Schema(description ="开始时间")
    private LocalDateTime startTime;

    @Schema(description ="结束时间")
    private LocalDateTime endTime;

    @Schema(description ="状态：active-启用, inactive-停用")
    private String status;

    @Schema(description ="轮播图位置：home_top-首页顶部, home_middle-首页中部, category_top-分类页顶部")
    private String bannerPosition;

    @Schema(description ="创建人ID")
    private Integer createdBy;

    @Schema(description ="创建时间")
    private LocalDateTime createdAt;

    @Schema(description ="更新时间")
    private LocalDateTime updatedAt;
}
